﻿namespace LogNet6.SqlServer;

/// <summary>
/// 
/// </summary>
public interface ISqlServerLoggerProcessor 
{
    /// <summary>
    /// 获取日志
    /// </summary>
    /// <param name="pageNo">分页序号，从0开始</param>
    /// <param name="pageSize">每页日志数量</param>
    /// <returns></returns>
    Task<List<SqlserverLoggerItem>> GetLogsAsync(int pageNo, int pageSize);
    /// <summary>
    /// 获取日志
    /// </summary>
    /// <param name="pageNo">分页序号，从0开始</param>
    /// <param name="pageSize">每页日志数量</param>
    /// <returns></returns>
    List<SqlserverLoggerItem> GetLogs(int pageNo, int pageSize);

    /// <summary>
    /// 获取日志
    /// </summary>
    /// <param name="categoryName">分类</param>
    /// <param name="pageNo">分页序号，从0开始</param>
    /// <param name="pageSize">每页日志数量</param>
    /// <returns></returns>
    List<SqlserverLoggerItem> GetLogs(string categoryName, int pageNo, int pageSize);


}
